﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data;

namespace Maticsoft.Web
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Maticsoft.BLL.newsinfo bs = new BLL.newsinfo();
                DataSet ds = bs.GetList(5, "  tid=35","ntime desc");
                rptgg.DataSource = ds.Tables[0];
                rptgg.DataBind();
                ds = bs.GetList(10, "  tid between 1 and 12 ", "ntime desc");
                rptg1.DataSource = ds.Tables[0];
                rptg1.DataBind();
                ds = bs.GetList(10, "  tid=1 or tid=7", "ntime desc");
                rptzb.DataSource = ds.Tables[0];
                rptzb.DataBind();
                ds = bs.GetList(10, "  tid=2 or tid=8", "ntime desc");
                rptfzb.DataSource = ds.Tables[0];
                rptfzb.DataBind();
                ds = bs.GetList(10, "  tid=30", "ntime desc");
                rptjj.DataSource = ds.Tables[0];
                rptjj.DataBind();
                ds = bs.GetList(10, "  tid=6 or tid=12", "ntime desc");
                rptggxx.DataSource = ds.Tables[0];
                rptggxx.DataBind();
                ds = bs.GetList(3, "  tid=37", "ntime desc");
                rptdown.DataSource = ds.Tables[0];
                rptdown.DataBind();
                ds = bs.GetList(6, "  tid=38", "ntime desc");
                rptwt.DataSource = ds.Tables[0];
                rptwt.DataBind();
                ds = bs.GetList(6, "  tid=36", "ntime desc");
                rptggg.DataSource = ds.Tables[0];
                rptggg.DataBind();
               
            }
        }
    }
}
